package de.dubiel.plung.client.pages.game;

import com.google.gwt.activity.shared.AbstractActivity;
import com.google.gwt.event.shared.EventBus;
import com.google.gwt.user.client.ui.AcceptsOneWidget;

import de.dubiel.plung.client.gin.ClientGinjector;

public class GameActivity extends AbstractActivity {
    private final ClientGinjector clientGinjector;

    
    public GameActivity(GamePlace place, ClientGinjector clientGinjector) {
        this.clientGinjector = clientGinjector;
    }

    @Override
    public void start(AcceptsOneWidget containerWidget, EventBus eventBus) {
        GameView gameView = clientGinjector.getGameView();
        containerWidget.setWidget(gameView.asWidget());
    }

}